package com.amado.course03;

/**
 * @author wangyl-910
 * @description
 * @date 2018/4/4
 * @see
 */
public class BooleanType {
    static boolean openFlag;
    public static void main(String[] args) {
        boolean booleanValue = false;
        booleanValue = true;
        Boolean booleanObject = true;
        booleanObject = null;
        if (booleanValue) {
            System.out.println("booleanvalue is true");
        } else {
            System.out.println("booleanvalue is true");
        }
        //==是比较值
        if (booleanValue == false) {
            System.out.println("this is one false");
        }
        //=是赋值，相当于先booleanVluae=false赋值，再if(相当于booleanVluae)
        if (booleanValue = false) {
            System.out.println("this is two false");
        }

        System.out.println("openFlag=" + openFlag);

    }
}
